package com.newcoin.xgb.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class RechargeDto {

    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @NotBlank(message = "令牌不能为空")
    private String token;

    @NotBlank(message = "支付凭证路径不能为空")
    private String url;

    @NotNull(message = "支付金额不能为空")
    private BigDecimal amount;

}
